			<?php if(isset($error)){?>
				<div id="tonyError" class="error"><?php echo $error;?></div>
			<?php }elseif (isset($success)){?>
				<div id="tonySuccess" class="success"><?php echo $success;?></div>
			<?php }?>
			<?php $account_info = $this->session->userdata('user');?>
			<div id="content">
                <div class="inner">
					<div class="topcolumn">
						<div class="logo"></div>
                            <ul  id="shortcut">
                                <li> <a href="#" title="Back To home"> <img src="<?php echo base_url();?>public/admin/img/icon/shortcut/home.png" alt="home"/><strong>Home</strong> </a> </li>
                                <li> <a href="#" title="Website Graph"> <img src="<?php echo base_url();?>public/admin/img/icon/shortcut/graph.png" alt="graph"/><strong>Graph</strong> </a> </li>
                                <li> <a href="#" title="Setting" > <img src="<?php echo base_url();?>public/admin/img/icon/shortcut/setting.png" alt="setting" /><strong>Setting</strong></a> </li> 
                                <li> <a href="#" title="Messages"> <img src="<?php echo base_url();?>public/admin/img/icon/shortcut/mail.png" alt="messages" /><strong>Message</strong></a><div class="notification" >10</div></li>
                            </ul>
					</div>
                    <div class="clear"></div>
                  	<div class="onecolumn" >
                  	
	                  <div class="header"><span ><span class="ico  gray connect"></span>Edit Administrator</span> </div><!-- End header -->	
	                  <div class="clear"></div>
	                  <div class="content" >
	                  	<div class="tab_container">
	                  	<div class="tab_content"> 
	                  	<div class="load_page">
	                  	<div class="formEl_b">	
	                    	<form id="validation" action="<?php echo  admin_url();?>/edit-adminstrator/<?php echo $admin->id; ?>" method="post" > 
                         		<div class="section ">
                                	<label> Fullname<small>Fullname</small></label>   
                                      <div> 
                                      	<input type="text" class="large" name="fullname" value="<?php echo $admin->fullname;?>" id="fullname">
                                      </div>
                            	</div>
                               	<div class="section ">
                                      <label> Email Validate *<small>Email</small></label>   
                                      <div> 
                                      	<input type="text" class="validate[custom[email]] large" value="<?php echo $admin->email;?>" name="email" id="email">
                                      </div>
                               	</div>
                                <div class="section">
                                      <label> Login  Account*  <small>* fields are required</small></label>
                                      <div>
	                                      <input type="text"  name="username" id="username"  class="validate[minSize[3],maxSize[20],] medium" value="<?php echo $admin->username;?>" /><label>Username *</label>
	                                      <span class="f_help"> Username login or register. <br />Should be between 3 and not more than 20 characters.</span> 
                                      </div>
                                      <div>
                                      	<input type="password"  class="validate[minSize[6]] medium"  name="password" id="password" value=""  /><label>Password</label>
                                      </div>
                                      <div>
                                      	<input type="password" class="medium"  name="passwordCon" id="passwordCon"  /><label>Confirm Password</label>
                                        <span class="f_help"> Your password should be at least 6 characters.</span>
                                      </div>
                               	</div>
                               	<div class="section">
                               		<label>Status<small>Status</small></label>  
                               		<div>
	                               		<select name="change_status" class="add-status" style="width: 150px;">
					                		<option value="yes" <?php if($admin->active == 'yes'){echo "selected";}?>><?php echo $this->lang->line('yes'); ?></option>
					                		<?php if($account_info['username'] != $admin->username){?>
					                			<option value="no" <?php if($admin->active == 'no'){echo "selected";}?>><?php echo $this->lang->line('no'); ?></option>
					                		<?php }?>
					                	</select>
				                	</div>
                               	</div>
                               	<div class="section">
                               		<label>Group Role<small>Group Role</small></label>  
                               		<div>
	                               		<select name="change_group" class="change_group" style="width: 150px;">
	                               			<?php if($account_info['group'] == "admin"){?>
						                		<?php if($admin->group != "admin"){?>
						                			<option value="support" <?php echo ($admin->group == "support")?"selected":""?>>Support</option>
						                			<option value="developer" <?php echo ($admin->group == "developer")?"selected":""?>>Developer</option>
							                		<option value="editor" <?php echo ($admin->group == "editor")?"selected":""?>>Editor</option>
							                		<option value="viewer" <?php echo ($admin->group == "viewer")?"selected":""?>>Viewer</option>
						                		<?php }?>
						                		<?php if($account_info['group'] == $admin->group){?>
						                			<option value="admin" <?php echo ($admin->group == "admin")?"selected":""?>>Admin</option>
						                		<?php }?>
					                		<?php }else{?>
					                			<?php if($account_info['group'] == "support"){?>
					                			<option value="support">Support</option>
					                			<?php }elseif ($account_info['group'] == "developer"){?>
					                			<option value="developer">Developer</option>
					                			<?php }elseif ($account_info['group'] == "editor"){?>
						                		<option value="editor">Editor</option>
						                		<?php }else {?>
						                		<option value="viewer">Viewer</option>
						                		<?php }?>
					                		<?php }?>
					                	</select>
				                	</div>
                               	</div>
                                <div class="section last">
                                      <div>
                                        <input type="submit" class="uibutton submit_form" value="<?php echo $this->lang->line('save');?>" id="but_editAdmin" />
                                        <a class="uibutton special"   onClick="ResetForm()" title="Reset  Form"   >Clear Form</a>
                                      </div>
                               	</div>
	                    	</form>
	                  	</div> <!-- End .formEl_b -->
	                  	</div> <!-- End .load_page -->
	                  	</div> <!-- End .tab_content -->
	                  	</div> <!-- End .tab_container -->
	                  	</div> <!-- End .content -->
	                  	<div class="clear"/></div>                  
                 	</div><!-- End .onecolumn -->
                  	
                  	</div>
                  	<script type="text/javascript" src="<?php echo base_url();?>public/admin/js/login.js"></script>
        		  <script type="text/javascript">
        		  	loading('Checking',1);		
        			setTimeout( "unloading()", 500 );
					var error = '<?php if(isset($error)){echo $error;}?>';
					if(error != ""){$('#tonyError').addClass('error').html(error).stop(true,true).show().animate({ opacity: 1,right: '10'}, 1000);setTimeout('hideTop()',3500);}
		
					var success = '<?php if(isset($success)){echo $success;}?>';
					if(success != ""){$('#tonySuccess').addClass('success').html(success).stop(true,true).show().animate({ opacity: 1,right: '10'}, 1000);setTimeout('hideTop()',3500);}

				 </script> 